<?php
namespace app\manager\model;

use think\Model;

class CampTypes extends \think\Model
{
    
    protected $table = 'camp_types';
    
    public function getCampTypeLists()
    {
        return $this->select();
    }

    public function createCampType($post_camptype_info)
    {
        return $this->create($post_camptype_info);
    }

    public function getCampTypeInfo($id)
    {
        return $this->where('id',$id)->find();
    }

    public function updateCampType($id, $post_camptype_info)
    {
        return $this->where('id',$id)->update($post_camptype_info);
    }

    public function delInfo($id)
    {
        $result = $this->destroy($id);
        if ($result) {
            return true;
        }
        return false;
    }
}